Density of the Flexible Dirichlet distribution
fd.density(x, alpha, prob, tau)
A vector or a matrix with compositional data.
A vector of the non-negative
A vector of the clusters' probabilities. It must sum to one.
The non-negative scalar
The density value(s).
For more information see the references.
Ongaro A. and Migliorati S. (2013). A generalization of the Dirichlet distribution. Journal of Multivariate Analysis, 114, 412--426.
Migliorati S., Ongaro A. and Monti G. S. (2017). A structured Dirichlet mixture model for compositional data: inferential and applicative issues. Statistics and Computing, 27, 963--983.
# NOT RUN {
alpha <- c(12, 11, 10)
prob <- c(0.25, 0.25, 0.5)
tau <- 8
x <- rfd(20, alpha, prob, tau)
fd.density(x, alpha, prob, tau)
# }
Run the code above in your browser using DataLab